/**
 * licenses
 *
 */
package com.openjawtech.xscraper.flights.dao;

import java.util.List;
import com.openjawtech.xscraper.flights.domain.Airport;

/**
 * <p>hibernate dao, supply the CRUD operations for airport instance
 *
 * <p>15/02/2009
 * @author Wenbo.Sun
 */

public interface AirportDAO {

    //save an airport instance
    public void save(Airport airport);

    //update an airport instance
    public void update(Airport airport);

    //delete an airport instance
    public void delete(Airport airport);

    //retrieve all airport names
    public List<String> getAllNames();

    //retrieve all arrival airports of a desparture
    public List<String> getArrivals(String name);

    //retrieve a airport instance by name
    public Airport getByName(String name);

    //check existence of the name
    public boolean isExisted(String name);

}
